﻿/*******************************************************************************
 * Copyright @ 2017 YunSpace.Framework 版权所有
 * Author: GaoTang
 * Description: YunSpace 快速开发平台
 * Website：http://www.yunspace.com.cn
*********************************************************************************/
#region USING SYSTEM
using System.Collections.Generic;
using YunSpace.Data;
using YunSpace.Domain.Entity.WorkFlow;
#endregion

namespace YunSpace.Domain.IRepository.WorkFlow
{
    //public interface IFormDesignerRepository : IRepositoryBase<FormDesignerEntity>
    public interface IFormDesignerRepository
    {
        /// <summary>
        /// 新增
        /// </summary>
        int Add(FormDesignerEntity model);

        /// <summary>
        /// 更新
        /// </summary>
        int Update(FormDesignerEntity model);

        /// <summary>
        /// 查询所有记录
        /// </summary>
        List<FormDesignerEntity> GetAll();

        /// <summary>
        /// 查询单条记录
        /// </summary>
        FormDesignerEntity Get(string id);

        /// <summary>
        /// 删除
        /// </summary>
        int Delete(string id);

        /// <summary>
        /// 查询记录条数
        /// </summary>
        long GetCount();

        /// <summary>
        /// 查询一个分类所有记录
        /// </summary>
        List<FormDesignerEntity> GetAllByType(string types);
    }
}

